# -*- encoding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 6
_modified_time = 1317378092.708987
_template_filename='/home/wolfking/workspace/tornado/Soy/application/views/profile/profile.html'
_template_uri='/profile/profile.html'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
from whirlwind.view.filters import Filters, Cycler
_exports = ['lhs', 'scripts']


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]
def _mako_generate_namespaces(context):
    pass
def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, u'/layouts/content.html', _template_uri)
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        __M_writer = context.writer()
        # SOURCE LINE 2
        __M_writer(u'\n')
        # SOURCE LINE 3
        __M_writer(u'\n')
        # SOURCE LINE 41
        __M_writer(u'\n\n')
        # SOURCE LINE 44
        __M_writer(u'\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_lhs(context):
    context.caller_stack._push_frame()
    try:
        username = context.get('username', UNDEFINED)
        interests = context.get('interests', UNDEFINED)
        credit = context.get('credit', UNDEFINED)
        level = context.get('level', UNDEFINED)
        mylocale = context.get('mylocale', UNDEFINED)
        mytimezone = context.get('mytimezone', UNDEFINED)
        myimg = context.get('myimg', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 4
        __M_writer(u'\n<div style="margin-bottom: 15px; margin-left:10px">\n    <h1>')
        # SOURCE LINE 6
        __M_writer(unicode(username))
        __M_writer(u'\'s profile</h1>\n</div>\n<div>\n    <img id="myimg" src="')
        # SOURCE LINE 9
        __M_writer(unicode(myimg))
        __M_writer(u'"/>\n</div>\n<div>\n    username : ')
        # SOURCE LINE 12
        __M_writer(unicode(username))
        __M_writer(u' \n</div>\n<div>\n    language : ')
        # SOURCE LINE 15
        __M_writer(unicode(mylocale))
        __M_writer(u' \n</div>\n<div>\n    timezone : ')
        # SOURCE LINE 18
        __M_writer(unicode(mytimezone))
        __M_writer(u' \n</div>\n<div>\n    level    : ')
        # SOURCE LINE 21
        __M_writer(unicode(level))
        __M_writer(u' \n</div>\n<div>\n    credit   : ')
        # SOURCE LINE 24
        __M_writer(unicode(credit))
        __M_writer(u' \n</div>\n<div>\n    Interests :\n')
        # SOURCE LINE 28
        if not interests:
            # SOURCE LINE 29
            __M_writer(u'        You have not add any interest yet!\n')
            pass
        # SOURCE LINE 31
        __M_writer(u'    <ul>\n')
        # SOURCE LINE 32
        for interest in interests:
            # SOURCE LINE 33
            __M_writer(u'    <li>')
            __M_writer(unicode(interest))
            __M_writer(u'</li>\n')
            pass
        # SOURCE LINE 35
        __M_writer(u'    </ul>\n</div>\n<div>\n    <a href="/profile/edit">Edit Your Profile</a>\n</div>\n\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_scripts(context):
    context.caller_stack._push_frame()
    try:
        __M_writer = context.writer()
        # SOURCE LINE 43
        __M_writer(u'\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


